package org.springblade.modules.admin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

import java.util.List;

/**
    * 专项保养历史记录
    */
@Data
@EqualsAndHashCode(callSuper=true)
@TableName(value = "blade_maintain_check_special_history")
public class MaintainCheckSpecialHistory extends TenantEntity {
    /**
     * 电梯id
     */
    @TableField(value = "elevator_id")
    private Long elevatorId;

    /**
     * 任务id
     */
    @TableField(value = "plan_id")
    private Long planId;

    /**
     * 专项保养检查项id
     */
    @TableField(value = "template_content_id")
    private Long templateContentId;

    /**
     * 维护保养项目（内容）
     */
    @TableField(value = "content")
    private String content;

    /**
     * 维护保养基本要求
     */
    @TableField(value = "basic_requirements")
    private String basicRequirements;

    /**
     * 记录数据
     */
    @TableField(value = "record_data")
    private Integer recordData;

    /**
     * record_data单位
     */
    @TableField(value = "record_data_unit")
    private String recordDataUnit;

    /**
     * record_data是否必填， 1：必填
     */
    @TableField(value = "record_data_require")
    private Integer recordDataRequire;

    /**
     * 拍照
     */
    @TableField(value = "photo")
    private Integer photo;

    /**
     * photo是否必填， 1：必填
     */
    @TableField(value = "photo_require")
    private Integer photoRequire;

    /**
     * 视频
     */
    @TableField(value = "video")
    private Integer video;

    /**
     * video是否必填， 1：必填
     */
    @TableField(value = "video_require")
    private Integer videoRequire;

    /**
     * 记录
     */
    @TableField(value = "record")
    private Integer record;

    /**
     * record单位
     */
    @TableField(value = "record_unit")
    private String recordUnit;

    /**
     * record是否必填， 1：必填
     */
    @TableField(value = "record_require")
    private Integer recordRequire;

    /**
     * 图片
     */
    @TableField(value = "img_url",typeHandler = JacksonTypeHandler.class)
    private List<String> imgUrl;

    /**
     * 视频
     */
    @TableField(value = "video_url",typeHandler = JacksonTypeHandler.class)
    private List<String> videoUrl;

    /**
     * 记录
     */
    @TableField(value = "record_history")
    private String recordHistory;

    /**
     * 记录数据
     */
    @TableField(value = "record_data_history")
    private String recordDataHistory;

    /**
     * 描述
     */
    @TableField(value = "`desc`")
    private String desc;
}
